<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<s:property value="pegawai"/>
<s:property value="#pegawai"/>
<s:property value="%{pegawai}"/>
<br />
<s:url id="gridUrl" action="modul/alamatpegawai/jqgrid">
	<s:param name="pegawai" value="%{#parameters.id}" />
</s:url>

<s:url id="crudUrl" action="modul/alamatpegawai/jqcrud">
	<s:param name="pegawai" value="%{#parameters.id}" />
</s:url>

<sjg:grid id="alamatPegawai" caption="Alamat Pegawai" dataType="json"
	href="%{gridUrl}" pager="true" navigator="true"
	navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
	navigatorAddOptions="{height:'auto',width:600,reloadAfterSubmit:true}"
	navigatorEditOptions="{height:'auto',width:600,reloadAfterSubmit:false}"
	navigatorEdit="true" navigatorView="false" navigatorDelete="true"
	navigatorAdd="true" navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}"
	gridModel="list" rowList="10,15,20" rowNum="15" editurl="%{crudUrl}"
	editinline="true" onSelectRowTopics="rowselect"
	onEditInlineSuccessTopics="oneditsuccess" viewrecords="true"
	width="700" shrinkToFit="true" autowidth="true">
	<sjg:gridColumn name="id" id="id" frozen="true" index="id" title="ID"
		width="60" formatter="integer" editable="false" sortable="false"
		search="true" searchoptions="{sopt:['eq','ne','lt','gt']}" />
	<sjg:gridColumn name="alamatRumah" id="alamatRumah" index="alamatRumah"
		title="Alamat Rumah" width="250" editable="true" edittype="textarea"
		sortable="true" search="false" editoptions="{cols:40, rows:4}" />
	<sjg:gridColumn name="kelurahan" id="kelurahan" index="kelurahan"
		title="Kelurahan" width="250" editable="true" edittype="text"
		sortable="true" search="false" />
	<sjg:gridColumn name="kecamatan" id="kecamatan" index="kecamatan"
		title="Kecamatan" width="250" editable="true" edittype="text"
		sortable="true" search="false" />
	<sjg:gridColumn name="kodePos" id="kodepos" index="kodepos"
		title="Kode Pos" width="250" editable="true" edittype="text"
		sortable="true" search="false" />
</sjg:grid>
